<template>
	<view class="page">
		<view class="tx">
			
		</view>
		<view class="name">
			
		</view>
		<view class="sex">
			
		</view>
		<view class="dept">
			
		</view>
		
	</view>
</template>

<script>
export default {
    data() {
        return {
            member: {}
        }
    },
    onLoad: function(options) {
        const memberId = options.memberId;
        this.fetchMemberDetail(memberId);
		console.log(memberId)
    },
	
    methods: {
        fetchMemberDetail(memberId) {
            const members = [
                { id: 1, name: '小钟' , photo: 'http://n.sinaimg.cn/sinacn23/481/w640h641/20180713/2012-hfhfwmv0396781.jpg'},
                { id: 2, name: '老板' , photo: 'https://wallpaperm.cmcm.com/765b808cc3d79b583eeda49f9dd3fda0.jpg' },
            ];
            this.member = members.find(member => member.id == memberId) || {};
        }
    }
}
</script>

<style lang="less">
	@import url("member_detail.less");
</style>
